package com.itheima.gateway.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/order")
public class OrderController {

    @Value("${server.port}")
    String port;
    @RequestMapping("/create")
    public String create(@RequestParam(value = "name", defaultValue = "itheima") String name) {
        return "HI, " + name + " ,创建订单成功>>>>>port:" + port;
    }
}




